import request from '@/utils/request'

// 查询级别列表
export function pagelistLevel(query) {
  return request({
    url: '/pc/level/pageList',
    method: 'get',
    params: query
  })
}

// 查询级别列表
export function listLevel(query) {
  return request({
    url: '/pc/level/list',
    method: 'get',
    params: query
  })
}

// 查询级别详细
export function getLevel(id) {
  return request({
    url: '/pc/level/info/' + id,
    method: 'get'
  })
}

// 新增级别
export function addLevel(data) {
  return request({
    url: '/pc/level/addOrUpdate',
    method: 'post',
    data: data
  })
}

// 修改级别
export function updateLevel(data) {
  return request({
    url: '/pc/level/addOrUpdate',
    method: 'post',
    data: data
  })
}

// 删除级别
export function delLevel(id) {
  return request({
    url: '/pc/level/delete/' + id,
    method: 'delete'
  })
}
